cmake_minimum_required(VERSION 3.8)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED FALSE)

set(PROJECT_NAME imgui)
project(${PROJECT_NAME})

file(GLOB SRC ./*.cpp ./backends/imgui_impl_opengl3.cpp ./backends/imgui_impl_glfw.cpp)

include_directories(./)

if (WIN32)
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

add_library(${PROJECT_NAME} STATIC ${SRC})

